package wqh.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import wqh.dao.XkDeviceAlarmDao;
import wqh.domain.XkDeviceAlarm;
import wqh.service.XkDeviceAlarmService;

import java.util.List;

/**
 * Created by devts on 2017/1/5.
 */
@Service("xkDeviceAlarmService")
public class XkDeviceAlarmServiceImpl implements XkDeviceAlarmService {

    private final XkDeviceAlarmDao dao;

    @Autowired
    public XkDeviceAlarmServiceImpl(XkDeviceAlarmDao dao) {
        this.dao = dao;
    }

    public void save(XkDeviceAlarm entity) {
        this.dao.save(entity);
    }

    public void update(XkDeviceAlarm entity) {
        this.dao.update(entity);
    }

    public void delete(XkDeviceAlarm entity) {
        this.dao.delete(entity);
    }

    public void deleteAll() {
        this.dao.deleteAll();
    }

    public List<XkDeviceAlarm> findAll() {
        return this.dao.findAll();
    }

    public XkDeviceAlarm findById(Long id) {
        return this.dao.findById(id);
    }
}
